package com.infinitus.nginxInfo.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="kafka_startup_Log")
public class KafkaStartupLog implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3264466380582270146L;


	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long id;
	
	
	private String consumerTopic;
	private String consumerPartition;
	private String consumerOffset;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date addTime;


	public long getId() {
		return id;
	}


	public void setId(long id) {
		this.id = id;
	}



	public String getConsumerTopic() {
		return consumerTopic;
	}


	public void setConsumerTopic(String consumerTopic) {
		this.consumerTopic = consumerTopic;
	}


	public String getConsumerPartition() {
		return consumerPartition;
	}


	public void setConsumerPartition(String consumerPartition) {
		this.consumerPartition = consumerPartition;
	}


	public String getConsumerOffset() {
		return consumerOffset;
	}


	public void setConsumerOffset(String consumerOffset) {
		this.consumerOffset = consumerOffset;
	}


	public Date getAddTime() {
		return addTime;
	}


	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}




	public KafkaStartupLog() {
		super();
	}


	public KafkaStartupLog(String consumerTopic, String consumerPartition, String consumerOffset) {
		super();
		this.consumerTopic = consumerTopic;
		this.consumerPartition = consumerPartition;
		this.consumerOffset = consumerOffset;
		this.addTime = new Date();
	}


	@Override
	public String toString() {
		return "KafkaStartupLog [id=" + id + ", consumerTopic=" + consumerTopic + ", consumerPartition="
				+ consumerPartition + ", consumerOffset=" + consumerOffset + ", addTime=" + addTime + "]";
	}

	
	
}
